package zhu.areas.user.service;

import java.util.List;

import zhu.areas.user.data.User;

//User的Service接口
public interface IUserService {
	public Boolean addUser(User user);
	
	public Boolean deleteUser(Integer userId);
	
	public Boolean updateUser(User user);
	
	public User getUserByUserId(Integer userId);

	public List<User> getUsers();
	
	public User findByEmail(String email);
	
	public User findByUsername(String username);
	
	public boolean nameUnique(String username);
	
	public boolean emailUnique(String email);
	
}
